/// WriteoffOrderHisPageRequestDto
class WriteoffOrderHisPageRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 订单号
  final String? orderNum;
  /// 卡片代码
  final String? cardCode;
  /// 卡种类ID
  final String? cardTypeId;
  /// 上传用户
  final String? userName;
  /// 核销人
  final String? writeoffBy;
  /// 上传时间-开始
  final String? createTimeBegin;
  /// 上传时间-截止
  final String? createTimeEnd;
  /// 核销日期-开始
  final String? writeoffTimeBegin;
  /// 核销日期-截止
  final String? writeoffTimeEnd;

  WriteoffOrderHisPageRequestDto({
    this.pageNum,
    this.pageSize,
    this.orderNum,
    this.cardCode,
    this.cardTypeId,
    this.userName,
    this.writeoffBy,
    this.createTimeBegin,
    this.createTimeEnd,
    this.writeoffTimeBegin,
    this.writeoffTimeEnd,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    if (orderNum != null) data['orderNum'] = orderNum;
    if (cardCode != null) data['cardCode'] = cardCode;
    if (cardTypeId != null) data['cardTypeId'] = cardTypeId;
    if (userName != null) data['userName'] = userName;
    if (writeoffBy != null) data['writeoffBy'] = writeoffBy;
    if (createTimeBegin != null) data['createTimeBegin'] = createTimeBegin;
    if (createTimeEnd != null) data['createTimeEnd'] = createTimeEnd;
    if (writeoffTimeBegin != null) data['writeoffTimeBegin'] = writeoffTimeBegin;
    if (writeoffTimeEnd != null) data['writeoffTimeEnd'] = writeoffTimeEnd;
    return data;
  }

  factory WriteoffOrderHisPageRequestDto.fromJson(Map<String, dynamic> json) {
    return WriteoffOrderHisPageRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      orderNum: json['orderNum'],
      cardCode: json['cardCode'],
      cardTypeId: json['cardTypeId'],
      userName: json['userName'],
      writeoffBy: json['writeoffBy'],
      createTimeBegin: json['createTimeBegin'],
      createTimeEnd: json['createTimeEnd'],
      writeoffTimeBegin: json['writeoffTimeBegin'],
      writeoffTimeEnd: json['writeoffTimeEnd'],
    );
  }
}